package com.keya.pull;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * <p>
 * 公共参数管理
 * </p>
 *
 * @author hsq
 * @since 2022-08-16
 */
@ApiModel(value = "公共参数管理")
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("public_param")
public class PublicParam extends Model<PublicParam> {
    private static final long serialVersionUID = 1L;
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "参数名称")
    @TableField("public_name")
    private String publicName;

    @ApiModelProperty(value = "键")
    @TableField("public_key")
    private String publicKey;

    @ApiModelProperty(value = "值")
    @TableField("public_value")
    private String publicValue;

    @ApiModelProperty(value = "状态 0-正常；1-禁用")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "修改人")
    @TableField("update_by")
    private Integer updateBy;

    @ApiModelProperty(value = "更新时间")
    @TableField("update_time")
    private LocalDateTime updateTime;

}
